import service from '@/utils/request'
// eslint-disable-next-line no-unused-vars
const { httpPostForm, httpPost, httpGet } = service

const request = {
    //根据条件分页查询内部调拨
    interiorAllot (params) {
        return httpPost({
            url: '/material/internalAllocation/listByEntity',
            params
        })
    },
    //新增内部调拨
    AddInteriorAllot (params) {
        return httpPost({
            url: '/material/internalAllocation/create',
            params
        })
    },
    //修改内部调拨
    EditInteriorAllot (params) {
        return httpPost({
            url: '/material/internalAllocation/update',
            params
        })
    },
    //修改内部调拨明细
    EditInteriorAllotList (params) {
        return httpPost({
            url: '/material/internalAllocation/updateList',
            params
        })
    },
    // 冲红单
    redSingle (billId) {
        return httpGet({
            url: '/material/internalAllocation/initRedBill',
            params: {
                billId
            }
        })
    },
}

export default request